package ph.com.isla.sf2d;

import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;

public class Background extends SF2DSprite{

	public Background(RectF rectF) {
		super(rectF);
		
	}

	@Override
	public void draw(Canvas canvas) {
		Paint paint = new Paint();
		if (getBackgroundBitmap() != null){
			paint.setAntiAlias(true);
			canvas.drawBitmap(getBackgroundBitmap(), getRectF().left, getRectF().top, paint);
		} else {
			
			paint.setColor(getBackgroundColor());
			canvas.drawRect(getRectF(), paint);
		}
	}

	@Override
	public boolean isDraggable() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void animateClick() {
		// TODO Auto-generated method stub
		
	}

}
